use std::ffi::{c_void};
use super::handle::Handle;

#[derive(Debug,Copy,Clone,Default)]
pub struct CPBlock {
    pub cpblock:Handle,
}

impl CPBlock {
    pub fn new(mem : *const c_void) -> Self {
        Self {cpblock: Handle::new(mem)}
    }
    pub fn mem(&self) -> Handle {
        self.cpblock.clone()
    }
}